package game;

import java.util.Comparator;

public class PositionComparator implements Comparator
{
	public int compare(Object x, Object y)
	{
		if ( ((Position)x).getStrength() > ((Position) y).getStrength() )
		{
			return -1;
		}
		if ( ((Position)x).getStrength() == ((Position) y).getStrength() )
		{
			return 0;
		}
		return 1;
	}

}
